import { createStore } from 'vuex';
import data from '../../public/古诗译文.json';
import total from '../../public/总数据.json'
export default createStore({
    state: {
        data,
        total,
        currentRouter: 1,
        title: null,
        time: 715,
        year:"武则天长安元年",
        timeline: 715,
        place: "河南省郑州市登封市嵩山",
        经纬度: [
            112.94882812622069,
            34.48320011099861
        ],
        isMessageDisplay: false,
        province: "全国",
        currentProgress: 0,
        isPause: true,
        isclose: false,
        kilometer: 0
    },
    computed: {},
    mutations:{
        updateTime(state,newTime){
            state.time = newTime;
        },
        updateTitle(state,newTitle){
            state.title = newTitle;
        }
    },
    actions:{},
    getters: {
        
    }
});